package com.baiduface;

import com.baiduface.properties.BaiduFaceProperties;
import com.baiduface.template.BaiduFaceTemplate;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;

@EnableConfigurationProperties({
        BaiduFaceProperties.class
})
public class BaiduFaceAutoConfig {

    @Bean
    public BaiduFaceTemplate baiduFaceTemplate(BaiduFaceProperties baiduFaceProperties){
        return  new BaiduFaceTemplate(baiduFaceProperties);
    }

}
